package designpatterns.builders;

import lombok.extern.slf4j.Slf4j;
import org.junit.Test;

@Slf4j
public class AppTest {

    public static final String TOTAL_COST = "Total Cost: {}";

    @Test
    public void test() {
        MealBuilder mealBuilder = new MealBuilder();

        Meal vegMeal = mealBuilder.prepareVegMeal();
        log.info("Veg Meal");
        vegMeal.showItems();
        float cost = vegMeal.getCost();
        log.info(TOTAL_COST, cost);

        Meal nonVegMeal = mealBuilder.prepareNonVegMeal();
        log.info("Non-Veg Meal");
        nonVegMeal.showItems();
        float cost1 = nonVegMeal.getCost();
        log.info(TOTAL_COST, cost1);
    }

}

